package com.rm.zeyou.controller;

import com.rm.zeyou.entity.ItemGuaranteeConfig;
import com.rm.zeyou.response.ApiRestResponse;
import com.rm.zeyou.service.ItemGuaranteeConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务保证配置 前端控制器
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:08
 */
@Api(tags = "服务保障相关")
@RestController
@RequestMapping("/api/guaranteeConfig")
public class ItemGuaranteeConfigController {
    @Resource
    private ItemGuaranteeConfigService itemGuaranteeConfigService;

    @ApiOperation(value = "查询服务保障列表")
    @PostMapping("selectGuaranteeList")
    public ApiRestResponse<List<ItemGuaranteeConfig>> selectGuaranteeList() {
        return ApiRestResponse.success(itemGuaranteeConfigService.list());
    }
}
